class Cat:
    def __init__(self,name):
        self.name = name
    @classmethod
    def speak(cls):
        print('shout~~~~~~')


    def miao(self):
        print('miao~~~~~~')

cat = Cat('小白')
print(cat.name)
cat.miao()
# AttributeError: type object 'Cat' has no attribute 'name'
#print(Cat.name)  # 实例属性不能用类调用
#Cat.miao()  #TypeError: Cat.miao() missing 1 required positional argument: 'self'
Cat.speak()